package it.uniroma2.structure;


public class Flow_Control extends Control{
	
	public Flow_Control(){
		super();
	}
	
	public Flow_Control(String name){
		super(name);
	}
	
	public void addNode(Node n){
		subNodes.add(n);
	}

	@Override
	public String toString() {
		
		return flowTag + " name=\"" + this.name + "\"";
	}
	
	@Override
	public String toBPEL() {
		String output = "<" + this.toString() + ">\n";
		for(Node temp : this.subNodes) {
			output = output + temp.toBPEL();
		}
		return output + "</" + flowTag + ">\n";
	}

}
